class DevConfig:
    DEBUG = True
    # 数据库连接配置，必须的，格式为（数据库+数据库驱动://数据库用户名:密码@数据库主机地址:端口号/数据库名称）
    my_config = {
        "MYSQL": "mysql",
        "CYMSQL": "pymysql",
        "ACCOUNT": "root",
        "PASSWORD": 'foobared',
        # "PASSWORD": '1234',
        "ADDRESS": "127.0.0.1",
        "PORT": 3306,
        # "DATABASENAME": "flask_admin"
        "DATABASENAME": "flask_admin_1106"
    }
    SQLALCHEMY_DATABASE_URI = "{MYSQL}+{CYMSQL}://{ACCOUNT}:{PASSWORD}@{ADDRESS}:{PORT}/{DATABASENAME}".format(
        **my_config)
    SQLALCHEMY_TRACK_MODIFICATIONS = False  # 为True时，flask-sqlalchemy会跟踪对象的修改
    SQLALCHEMY_ECHO = True
